package com.py.credit.service;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;

import com.py.credit.common.rest.RestServiceResult;
import com.py.credit.entity.PromiseBookLog;
import com.py.credit.entity.PromiseBookReport;
import com.py.framework.core.common.Page;

public interface PromiseBookReportService {

	List<Map<String,Object>> getPromiseBooksByConditionForPage(String type,String ztType,String bookStatus,String havBook,String sql ,
			List<String> showColumns, String[] additionalColumns, String condition, Page page,Long deptId,Long userId,String sbtype);
	
	int savePromiseBook(String absolutepath,String type,String ztName,String tyshxydm,MultipartFile file,Long officeId,String officeName , Long id);
	
	int delPromiseBooks(List<Long> ids);
	
	int savePromiseBooks(List<PromiseBookReport> pbrList);
	
	String promiseBookPreview(Long id);
	
	int approvalMyself(List<Long> idList);
	
	Map<String,Object> selectOne(Long id);
	
	void insertErrorLog(PromiseBookLog promiseBookLog);
	
	List<Map<String, Object>> selectAllLogs(Page page);
	
	String getDownloadLogPath(String id);
	
	Map<String, String> selectCount(Long id);

	String selectAllParentIds(Long deptId);
}
